﻿@model SchoolProject2012.Areas.Eleve.Models.ACTUALITE

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>ACTUALITE</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.TITRE_ACTU)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TITRE_ACTU)
            @Html.ValidationMessageFor(model => model.TITRE_ACTU)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DESC_ACTU)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.DESC_ACTU)
            @Html.ValidationMessageFor(model => model.DESC_ACTU)
        </div>
        
        <div class="editor-label">
            @Html.Label("Classe")
        </div>
        <div class="editor-field">
            @Html.ListBox("classe")
        </div>

        <div class="editor-label">
            @Html.Label("Autoriser le public ?")
        </div>
        <div class="editor-field">
            Oui @Html.RadioButtonFor(model => model.TOUS, true)
            Non @Html.RadioButtonFor(model => model.TOUS, false, new { @checked = "checked" })
        </div>

        
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}
